package com.jufa_3.service;

import com.jufa_3.dto.PayInfo;
import com.jufa_3.dto.QueryReturnInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface PayService {

    /**发起支付
     * @param payInfo
     * @return
     */
    Map<String, String> payment(PayInfo payInfo);

    /**
     * 提取支付回调参数
     *
     * @param request
     * @return
     * @throws Exception
     */
    Map<String, String> notifyDecode(HttpServletRequest request) throws Exception;

    /**验证签名
     * @param map
     * @return
     */
    boolean verifySign(Map<String, String> map);

    /**查询支付结果
     *
     * @param OutTradeNo
     * @return
     */
    QueryReturnInfo orderQuery(String OutTradeNo);

}
